package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liwq
 * @description 上传文件至 OSS 请求信息
 * @date 2020-09-11 15:47:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "上传文件请求信息", description = "上传文件请求信息")
public class UploadReq extends BaseReqObj {

    private static final long serialVersionUID = 7511797826491671830L;

    @ApiModelProperty(value = "文件名称，带后缀", notes = "文件名称，带后缀", required = true)
    @NotEmpty(message = "文件名称不能为空")
    private String name;

    @ApiModelProperty(value = "文件流 Base64 格式字符串", notes = "文件流 Base64 格式字符串", required = true)
    @NotEmpty(message = "文件流不能为空")
    private String fileBase64;

}
